<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head><title>cancellazione Account</title></h:head> 
<body>

 <p:toolbar>
		<p:toolbarGroup>
		<p:button outcome="gestioneAccount.xhtml" value="Gestione Account" />
		</p:toolbarGroup>
	</p:toolbar>  
	<h:form>
	<p:panel header="Rimuovi il tuo Account">
			 <h:form >
			<h:panelGrid columns="3" id="remove">
				<h:outputLabel for="username">Username:</h:outputLabel>
				<p:inputText id="username" value="#{rimozioneAccountBean.cliente.username}" />
				<p:message for="username" />
				
				<h:outputLabel for="password">Password:</h:outputLabel>
				<p:password id="password" value="#{rimozioneAccountBean.cliente.password}" />
				<p:message for="password" />
				<p:commandButton action="#{rimozioneAccountBean.eliminaAccount()}" update="remove" value="rimuovi" />
			</h:panelGrid>
			</h:form>		
	</p:panel>			
	</h:form>
</body> 
</html>
